﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml.Serialization;

namespace Moddb08_WCF
{
    [XmlRoot(ElementName="column")]
    [XmlType(TypeName="column")]
    public class Column
    {
        private string _name;
        private string _type;
        private string _mime;


        public Column() { }

        public Column(string name)
        {
            _name = name;
        }

        public Column(string name, string type)
        {
            _name = name;
            _type = type;
        }

        public Column(string name, string type, string mime)
        {
            _name = name;
            _type = type;
            _mime = mime;
        }
        [XmlAttribute(AttributeName="name")]
        public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }

        [XmlAttribute(AttributeName = "type")]
        public string Type
        {
            get
            {
                return _type;
            }
            set
            {
                _type = value;
            }
        }
        [XmlAttribute(AttributeName = "mime")]
        public string Mime
        {
            get 
            {
                return _mime;
            }
            set
            {
                _mime = value;
            }
        }
    }
}
